package org.kmfdm.horrorscope.metamodel.beans;







import java.util.List;

import org.kmfdm.horrorscope.enums.School;
import org.kmfdm.horrorscope.metamodel.Astrologer;
import org.kmfdm.horrorscope.metamodel.Review;





@SuppressWarnings("serial")
public class AstrologerBean extends UserBean implements Astrologer {
	

	private School astrologySchool;
	private String email;
	private String about;
	private List<Review> myReviews;
	
	public School getAstrologySchool() {
		return astrologySchool;
	}
	public void setAstrologySchool(School astrologySchool) {
		this.astrologySchool = astrologySchool;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAbout() {
		return about;
	}
	public void setAbout(String about) {
		this.about = about;
	}
	public List<Review> getMyReviews() {
		return myReviews;
	}
	public void setMyReviews(List<Review> myReviews) {
		this.myReviews = myReviews;
	}

	public void addReview(Review r) {
		r.setReviewer(this);
		
		myReviews.add(r);
		
	}

	public void removeReview(Review r) {
		myReviews.remove(r);
		r.setReviewer(null);
	}
	

		
		
	
		
	

}
